<template>
  <nuxt-child v-show="$store.state.theme"></nuxt-child>
</template>

<script>
export default {
  loading: false,
  asyncData({ store }) {
    if (!store.state.login.token) store.commit("login/toggleShow", true);
  },
  mounted() {
    this.$setTheme(this.$store);
    this.$store.commit("login/addToKen", localStorage["token"]);
  }
};
</script>

<style>
</style>
